<%@ Page Title="" Language="C#" MasterPageFile="~/Master/continut.Master" AutoEventWireup="true" CodeBehind="import.aspx.cs" Inherits="Ciripescu_WebRole.import" %>

<%@ Register Assembly="WebTools.UI" Namespace="WebTools.UI.WebControls" TagPrefix="webtools" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function SelectAll(CheckBoxControl) {
        if (CheckBoxControl.checked == true) {
            var i;
            for (i = 0; i < document.forms[0].elements.length; i++) {
                if ((document.forms[0].elements[i].type == 'checkbox') &&
(document.forms[0].elements[i].name.indexOf('chkMarked') > -1)) {
                    document.forms[0].elements[i].checked = true;
                }
            }
        }
        else {
            var i;
            for (i = 0; i < document.forms[0].elements.length; i++) {
                if ((document.forms[0].elements[i].type == 'checkbox') &&
(document.forms[0].elements[i].name.indexOf('chkMarked') > -1)) {
                    document.forms[0].elements[i].checked = false;
                }
            }
        }
    }


</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" CssClass="fancy fancy-green" Width="100%">
        <cc1:TabPanel runat="server" HeaderText="Invitatii" ID="TabPanel1">
        <ContentTemplate>
        
        

<br />
<div >

<span class="label_large"><b>Urmatoarele persoane din lista dvs nu sunt pe Ciripescu, dar le puteti invita sa vi se alature:</b></span>
<span>(...nu uitati ca Ciripescu este de productie romaneasca si strainii probabil s-ar plictisii :))...)</span>
</div>


<br /><br />
<table width="100%"> 
<tr>
<td align="left">
    
        <webtools:RolloverImageButton
            ID="btnInvita" runat="server" onclick="Invita_Click" 
        ImageUrl="/images/buttons/invita.png" MouseOutImageUrl="/images/buttons/invita.png" MouseOverImageUrl="/images/buttons/invita_o.png" ToolTip="Invita persoanele selectate"></webtools:RolloverImageButton>
</td>
</tr>
<br />
<tr>
<td align="center">

    <h2><div id="errors" runat="server" class="errors"></div></h1>
        <input type="checkbox" name="SelectAllCheckBox" onclick="SelectAll(this)"/>
        <span class="label">Selecteaza tot</span>
        
        <br />
        <br />
        <asp:GridView ID="gwContacts" runat="server" AutoGenerateColumns="False" 
                            CssClass="grid-view">
             
            <EmptyDataTemplate>
            Nu am gasit nici un contact :(                                						
            </EmptyDataTemplate>
            
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkMarked" runat="server"/>
                    </ItemTemplate>
                </asp:TemplateField>                            
                
                <asp:TemplateField  HeaderText="Nume">
                    <ItemTemplate>
                       <%#Eval("Name")%>
                    </ItemTemplate>
                </asp:TemplateField>
                
               <asp:TemplateField  HeaderText="Email">
                    <ItemTemplate>
                       <%#Eval("Email")%>
                    </ItemTemplate>
                </asp:TemplateField>                                
                
            </Columns>
            <HeaderStyle CssClass="header" />
            <AlternatingRowStyle CssClass="alternate" />
            <RowStyle CssClass="normal" />
            </asp:GridView>
            </td>
</tr>
<tr>
<td align="left">
            <br />
            <asp:ImageButton ID="btnInvita2" runat="server" onclick="Invita_Click" 
        ImageUrl="/images/buttons/invita_pers_selectate.png" />

</td>
</tr>
</table>

        </ContentTemplate>
        </cc1:TabPanel>
    </cc1:TabContainer>
</asp:Content>
